package cn.smbms.mapper;

import cn.smbms.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    //登录
    public User login(@Param("userCode") String userCode,@Param("userPassword") String userPassword);
    //分页查
    public List<User> getUserPage(@Param("userName") String username,
                                  @Param("userRole") Integer userRole,
                                  @Param("from") Integer from,
                                  @Param("pageSize") Integer pageSize);
    public  int getCount(@Param("userName") String username,
                         @Param("userRole") Integer userRole);
}
